from pythonmap import *

# Coordinates of center
center = ("52.38","4.90")
# Zoom level
zoom = 12
# Size of returned map
mapsize = (640,640)

# Download and save map
get_static_google_map("file_name", "%s,%s"%center, zoom, mapsize, imgformat="jpg", maptype="satellite")

# Bounding box coordinates
lowerRight = adjust(-mapsize[0]/2-50,-mapsize[0]/2,float(center[0]),float(center[1]),zoom)
upperLeft = adjust(mapsize[1]/2+50,mapsize[1]/2,float(center[0]),float(center[1]),zoom)

